package com.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author zxy
 * @since 2021-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Evaluate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 信息
     */
    private String message;

    /**
     * 评分
     */
    private Integer score;

    /**
     * 教练id
     */
    private Integer coaid;

    /**
     * 生成时间
     */
    private Date createTime;

    @TableField(exist = false)
    private User user;

    public void setUser(User user) {
        this.user = user;
    }

    public User getUser() {
        return user;
    }
}
